package com.ray.activiti.table.mapper;

import java.util.Map;

import com.ray.activiti.common.mapper.BaseMapper;
import com.ray.activiti.table.entity.ExtendActFlowbus;

/**
 * 业务流程关系表与activitiBaseEntity中字段一样
 * @Auther ray  qray686898@163.com
 * @Date 2017/12/28
 * @代码参考或来自  https://github.com/huangxianyuan/hxyFrame
 */
public interface ExtendActFlowbusMapper extends BaseMapper<ExtendActFlowbus> {
    /**
     * 根据业务id更新
     * @param extendActFlowbusEntity
     * @return
     */
    int updateByBusId(ExtendActFlowbus extendActFlowbusEntity);

    /**
     * 根据业务id和流程实例id查询
     * @param params key:instanceId 流程实例id key:busId 业务id
     * @return
     */
    ExtendActFlowbus queryByBusIdInsId(Map<String,Object> params);
}
